<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

<!--    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Brand_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-brand_id" data-rule="required" data-source="product/brand/index" data-params='{"custom[deploy_type]":"8"}' class="form-control selectpage" name="row[brand_id]" type="text" value="">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_id" data-rule="required"  data-source="product/product/index" data-params='{"custom[deploy_type]":"8"}' data-field="title" class="form-control selectpage" name="row[product_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('品牌')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pinpai" data-rule="required" class="form-control" name="row[pinpai]" type="text" value="{$row.pinpai|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Shuileng')}:</label>

        <div class="col-xs-12 col-sm-8">
            <select  id="c-shuileng" class="form-control selectpicker" multiple="" name="row[shuileng][]">
                {foreach name="shuilengList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tixing')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tixing" data-rule="required" class="form-control" name="row[tixing]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jxlx')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jxlx" class="form-control" name="row[jxlx]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('机箱重量')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jxzl"  class="form-control" name="row[jxzl]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rgb')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rgb"  class="form-control" name="row[rgb]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zhuban')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-zhuban" class="form-control selectpicker" multiple="" name="row[zhuban][]">
                {foreach name="zhubanList" item="vo"}
                <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Yanse')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-yanse" data-rule="required" class="form-control" name="row[yanse]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Xianka')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-xianka" data-rule="required" class="form-control" name="row[xianka]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Caizhi')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-caizhi" data-rule="required" class="form-control" name="row[caizhi]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cpu')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cpu" data-rule="required" class="form-control" name="row[cpu]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Bpfs')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bpfs"  class="form-control" name="row[bpfs]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fsw')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fsw" data-rule="required" class="form-control" name="row[fsw]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Guangqu')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-guangqu" class="form-control" name="row[guangqu]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Yingpan')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-yingpan" data-rule="required" class="form-control" name="row[yingpan]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-img" data-rule="required" class="form-control" size="50" name="row[img]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-img" class="btn btn-danger faupload" data-input-id="c-img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-img" class="btn btn-primary fachoose" data-input-id="c-img" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-img"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-img"></ul>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
